# -*- mode: spamassassin -*-
# This is the right place to customize your installation of SpamAssassin.
# See 'perldoc Mail::SpamAssassin::Conf' for details of what can be tweaked.
#
###########################################################################
#
# (/org/bugs.debian.org/spamassassin/spamc)

# HEY YOU. YES YOU.
# RUN spamassassin --lint!

report_safe		1
#defang_mime		0
required_hits		4
version_tag             bugs.debian.org-2005-01-02
# just for testing!
#always_add_report	1

# cjwatson 2004-04-09 sorry, but we're stalling on Razor all the time at the
# moment and it's causing bad delays; turning off until spamscan is fixed to
# be multiprocess
# 2005-10-30 blarson turn back on finally
use_razor2		1

# testing only --joy, 2003-09-12
# 2005-01-28 blarson -- doesn't seem to be useful, disabling
#ok_locales              en
#score CHARSET_FARAWAY           0.03
#score HTML_CHARSET_FARAWAY      0.005
#score MIME_CHARSET_FARAWAY      0.02
ok_locales              all
score CHARSET_FARAWAY		0
score HTML_CHARSET_FARAWAY	0
score MIME_CHARSET_FARAWAY	0

#bayes_expiry_scan_count 20000

loadplugin Mail::SpamAssassin::Plugin::Bayes
# blarson 2005-01-28 -- try a bigger datebase
bayes_expiry_max_db_size 3000000
# may solve locking problem at cost of slower updates
# bayes_learn_to_journal	1

# make sure bayes is on
use_bayes 1

# Cope with refiltered mail
bayes_ignore_header X-Spam-Checker-Version
bayes_ignore_header X-Spam-Flag
bayes_ignore_header X-Spam-Level
bayes_ignore_header X-Spam-Status
# blarson 2009-04-09
# if we can't use Ironport as spam sign, at least don't treat it as non-spam
bayes_ignore_header X-IronPort-Anti-Spam-Filtered
bayes_ignore_header X-IronPort-Anti-Spam-Result
bayes_ignore_header X-IronPort-AV
# blarson 2009-05-22 google spam
bayes_ignore_header DKIM-Signature
bayes_ignore_header DomainKey-Signature
# blarson 2010-02-23
bayes_ignore_header X-Greylist


include bayes_configuration

# a bit cautious (cf. #188703)
# blarson -- ajust again, now that it's trained 2004-05-13
# blarson 2004-10-22
# blarson 2006-10-29 2006-11-17 2007-11-06
score BAYES_00 -4
score BAYES_05 -2
score BAYES_20 -1
score BAYES_40 -0.2
score BAYES_50 1
score BAYES_60 2
score BAYES_80 3
score BAYES_95 4
score BAYES_99 4.5

# add a bayes header
add_header all Bayes score:_BAYES_ _TOKENSUMMARY_ spammytokens:_SPAMMYTOKENS(5)_ hammytokens:_HAMMYTOKENS(5)_

# blarson 2005-01-28
clear_trusted_networks
# the /24 around spohr, master, and gluck
# something is already adding 127; remove it.
trusted_networks 128.193.0.0/24 146.82.138.0/24 192.25.206.0/24 140.211.166.0/24

# local hack to deal with missing plugin issues

loadplugin Mail::SpamAssassin::Plugin::URIDNSBL
loadplugin Mail::SpamAssassin::Plugin::Hashcash
loadplugin Mail::SpamAssassin::Plugin::SPF
loadplugin Mail::SpamAssassin::Plugin::Pyzor
loadplugin Mail::SpamAssassin::Plugin::Razor2
loadplugin Mail::SpamAssassin::Plugin::SpamCop
loadplugin Mail::SpamAssassin::Plugin::AWL
loadplugin Mail::SpamAssassin::Plugin::AutoLearnThreshold
loadplugin Mail::SpamAssassin::Plugin::WhiteListSubject
loadplugin Mail::SpamAssassin::Plugin::MIMEHeader
loadplugin Mail::SpamAssassin::Plugin::ReplaceTags
loadplugin Mail::SpamAssassin::Plugin::Check
loadplugin Mail::SpamAssassin::Plugin::HTTPSMismatch
loadplugin Mail::SpamAssassin::Plugin::URIDetail
loadplugin Mail::SpamAssassin::Plugin::BodyEval
loadplugin Mail::SpamAssassin::Plugin::DNSEval
loadplugin Mail::SpamAssassin::Plugin::HTMLEval
loadplugin Mail::SpamAssassin::Plugin::HeaderEval
loadplugin Mail::SpamAssassin::Plugin::MIMEEval
loadplugin Mail::SpamAssassin::Plugin::RelayEval
loadplugin Mail::SpamAssassin::Plugin::URIEval
loadplugin Mail::SpamAssassin::Plugin::WLBLEval
loadplugin Mail::SpamAssassin::Plugin::VBounce
loadplugin Mail::SpamAssassin::Plugin::Rule2XSBody
loadplugin Mail::SpamAssassin::Plugin::ImageInfo



# blarson 2004-03-20
# Disable most DNSBLs -- overhead to high 
# blarson 2005-01-28 try reducing timeout while adding spamcop back
# blarson 2005-10-29 adding some back now we are multi-threaded
# blarson 2007-09-14
rbl_timeout 15

# blarson 2007-09-14
loadplugin Mail::SpamAssassin::Plugin::URIDNSBL
# uridnsbl_timeout	5
rbl_timeout		5

include common/blacklists

include common/common_rbl

include common/common_spam

include common/bts_spam

include common/debian_specific

include common/bts_specific

include common/bts_scores
